import request from '@/utils/request'

// 查询采购明细列表
export function listPodDet(query) {
  return request({
    url: '/purchase/podDet/list',
    method: 'get',
    params: query
  })
}
// 查询采购明细和采购统计
export function listsPodDet(query) {
  return request({
    url: '/purchase/podDet/lists',
    method: 'get',
    params: query
  })
}
//搜索可接受的数据
export function serachlistPod(query) {
  return request({
    url: '/purchase/podDet/serachlistPod',
    method: 'get',
    params: query
  })
}



// 查询采购明细详细
export function getPodDet(podId) {
  return request({
    url: '/purchase/podDet/' + podId,
    method: 'get'
  })
}

// 新增采购明细
export function addPodDet(data) {
  return request({
    url: '/purchase/podDet/addPodDet',
    method: 'post',
    data: data
  })
}

// 修改采购明细
export function updatePodDet(data) {
  return request({
    url: '/purchase/podDet',
    method: 'put',
    data: data
  })
}

// 删除采购明细
export function delPodDet(podId,podQgid) {
  return request({
    url: '/purchase/podDet/delPodDet/' + podId+'/'+podQgid,
    method: 'delete'
  })
}

// 导出采购明细
export function exportPodDet(query) {
  return request({
    url: '/purchase/podDet/export',
    method: 'get',
    params: query
  })
}
